package com.fingard.dsp.bank.directbank.weixin01.domain.entity;


import com.fingard.dsp.bank.directbank.weixin01.domain.common.DomainConstants;

/**
 * 【统计主域名实际请求成功率策略】请求上报结果对象
 * @author liujinhui
 */
public class SuccessRateData {

    // 请求时间戳
    private Long time;
    // 上报结果
    private DomainConstants.ReportResult reportResult;
    // 请求域名
    private String domain;

    public SuccessRateData() {

    }

    public SuccessRateData(DomainConstants.ReportResult reportResult, String domain) {
        super();
        this.time = System.currentTimeMillis();
        this.reportResult = reportResult;
        this.domain = domain;
    }

    public Long getTime() {
        return time;
    }

    public void setTime(Long time) {
        this.time = time;
    }

    public DomainConstants.ReportResult getReportResult() {
        return reportResult;
    }

    public void setReportResult(DomainConstants.ReportResult reportResult) {
        this.reportResult = reportResult;
    }

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }

    @Override
    public String toString() {
        return "SuccessRateData [time=" + time + ", reportResult="
                + reportResult + ", domain=" + domain + "]";
    }
}
